package nl.justobjects.pushlet.core;

/**
 * xnkl  14-3-30.
 */
public class SubscribeAckEvent extends Event {
    public SubscribeAckEvent() {
        super(E_SUBSCRIBE_ACK);
    }
    @Override
    public String toQueryString() {
        return super.toQueryString();
    }

    @Override
    public String toXML(boolean strict) {
        return super.toXML(strict);
    }

    @Override
    public String toJSON() {
        /*StringBuilder sb = new StringBuilder(128);
        sb.append("{\"").append(P_EVENT).append("\":\"").append(E_SUBSCRIBE_ACK).append("\",\"")
                .append(P_ID).append("\":\"").append(getField(P_ID)).append("\",\"");
        String label = (String) getField(P_LABEL);
        if  (label != null)
            sb.append(P_LABEL).append("\":\"").append(label).append("\",\"");
        sb.append(P_SUBSCRIPTION_ID).append("\":\"").append(getField(P_SUBSCRIPTION_ID)).append("\",\"")
                .append(P_SUBJECT).append("\":\"").append(getSubject()).append("\",\"")
                .append(P_TIME).append("\":").append(getField(P_TIME)).append("}");
        return sb.toString();*/
    	return appendToJSON();
    }

    @Override
    public String toXML() {
        return super.toXML();
    }
}
